package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.AgencyDeductMoney;
import cc.yugu.yhdw.common.persistence.MasterMapper;

import java.util.List;
/**
 * 代理商扣款记录信息
 *
 * @Date:Created in 2018/6/29 16:45
 * @Author:
 * @Modified By: zjn 2018/6/29 16:45
 */
public interface AgencyDeductMoneyMapper extends MasterMapper {
    /**
    * 根据主键id查询表 hdw_agency_deduct_money
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.AgencyDeductMoney
    * @Author By: zjn 2018/6/29  16:45
    */
    public AgencyDeductMoney find(int id);
    /**
    * 根据代理商id查询，并返回行数
    *
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/29  16:46
    */
    public int findPageCount(AgencyDeductMoney search);
    /**
    * 根据代理商id分页查询，并将查询结果按照主键id降序排列
    *
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.AgencyDeductMoney>
    * @Author By: zjn 2018/6/29  16:47
    */
    public List<AgencyDeductMoney> findPageResult(AgencyDeductMoney search);
    /**
    * 插入
    *
    * @Param: [entity]
    * @Return: int
    * @Author By: zjn 2018/6/29  16:47
    */
    public int insert(AgencyDeductMoney entity);
    /**
    * 根据主键id更新
    *
    * @Param: [supplier]
    * @Return: int
    * @Author By: zjn 2018/6/29  16:48
    */
    public int update(AgencyDeductMoney supplier);
    /**
    * 根据主键id删除
    *
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/29  16:48
    */
    public int delete(int id);
}